<template>
  <main class="main">
    <Header />
    <AudContainer />
    <FooterDesc />
    <div id="components-back-top-demo-custom">
      <a-back-top>
        <div class="ant-back-top-inner">UP</div>
      </a-back-top>
    </div>
  </main>
</template>

<script>
import { message } from 'ant-design-vue'
import Header from '../components/main-header'
import AudContainer from '../components/aud-container'
import FooterDesc from '../components/footer-description'

export default {
  name: 'Main',
  components: {
    Header,
    AudContainer,
    FooterDesc,
  },
  mounted() {
    const aduMark = JSON.parse(localStorage.getItem('aduMark'))
    // console.log('aduMark: ', aduMark)
    aduMark && message.info(`您在${aduMark.date}观看了题目: ${aduMark.title},继续查看=>go`)
  }
}
</script>

<style lang="less" scoped>
.main {
  #components-back-top-demo-custom {
    .ant-back-top {
      bottom: 100px;
    }

    .ant-back-top-inner {
      height: 40px;
      width: 40px;
      line-height: 40px;
      border-radius: 4px;
      background-color: #1088e9;
      color: #fff;
      text-align: center;
      font-size: 20px;
    }
  }
}
</style>